// pages/historyContent/historyContent.js
Page({

  /**
   * 页面的初始数据
   */
  data: {
    cookbookContent:[

    ],
    date:""
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {
    let RecordData=wx.getStorageSync('RecordData');
    let date=options.date;
    let val=RecordData.find(v=>v.RecipesDate==date);
    let cookbookContent=[];
    cookbookContent.push(val.EatDiet7);
    cookbookContent.push(val.EatDiet10);
    cookbookContent.push(val.EatDiet11);
    cookbookContent.push(val.EatDiet15);
    cookbookContent.push(val.EatDiet17);
      this.setData({
        cookbookContent,
        date
      })
  },

})